package com.polaris.live.ui.me.beans

import android.os.Bundle
import com.blankj.utilcode.util.StringUtils
import com.polaris.live.viewmodel.MyBeansViewModel
import com.polaris.live.common.ext.setOnSingleClickListener
import com.polaris.live.common.mvvm.base2.BaseVbActivity
import com.polaris.live.common.util.ImmersionBarBuilder
import com.polaris.live.databinding.ActivityWithdrawSuccessBinding
import com.polaris.live.translation.R.string

/**
 * 提现成功页面
 *
 * @author Created by 长空 on 2023/11/14/024 20:04
 */
class WithdrawSuccessActivity : BaseVbActivity<MyBeansViewModel, ActivityWithdrawSuccessBinding>() {

    private val price by lazy { intent.getStringExtra("price") }

    override fun ImmersionBarBuilder.buildImmersionBar() {
        setTitleBar(mBinding.bvTitle)
    }

    override fun initView(savedInstanceState: Bundle?) {
        mBinding.tvPrice.text = StringUtils.getString(string.expected_withdrawal_amount, price)
        mBinding.tvSure.setOnSingleClickListener {
            finish()
        }
    }

}